<template>

</template>

<script>
import * as service from "@/views/distribute/service";

export default {
  name: "sendFileMixins",
  data() {
    return {

    }
  },
  methods: {
    cancelTerDialog() {
      this.showTerDialog = false
    },
    confirmSelectTer(msg) {
      let clientIds = []
      let mediaIds = []
      msg.forEach((item) => {
        if(clientIds.indexOf(item.id) === -1) {
          clientIds.push(item.id)
        }
      })
      if(this.clickCache.id) {
        mediaIds.push(this.clickCache.id)
      } else {
        this.mutiDelList.forEach((item) => {
          if(mediaIds.indexOf(item.id) === -1) {
            mediaIds.push(item.id)
          }
        })
      }
      const params = {
        clientIds,
        mediaIds
      }
      service.quicklySend(params).then(() => {
        this.$message.success('发送成功')
        this.showTerDialog = false
      })
    },
  }
}
</script>

<style scoped>

</style>
